package com.freesky.biz.icbc.mapper;

import com.freesky.biz.icbc.domain.TAigouActivity;
import com.freesky.biz.icbc.domain.TAigouCategory;
import com.freesky.common.core.domain.entity.SysDept;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AigouCategoryMapper {

    public List<TAigouCategory> selectCategoryList(TAigouCategory entity);

    public TAigouCategory selectCategoryById(String categoryId);

    public List<TAigouCategory> selectChildrenCategoryById(String categoryId);

    public int selectNormalChildrenCategoryById(String categoryId);

    public int hasChildByCategoryId(String categoryId);

    public int insertCategory(TAigouCategory entity);

    public int updateCategory(TAigouCategory entity);

    public void updateCategoryStatusNormal(String[] ids);

    public int updateCategoryChildren(@Param("categorys") List<TAigouCategory> categoryList);

    public int deleteCategoryById(String categoryId);

}
